package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;

import java.util.List;
import java.util.Map;

/**
 * @author 杨林
 * @create 2022-11-06 22:49 星期日
 * description:
 */
public interface DepartmentService {
    void save(Map<String,Object> paramMap);

    /**
     * 分类查询科室
     */
    org.springframework.data.domain.Page<Department> selectPage(Integer pageNum, Integer limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除科室
     */
    void remove(String hoscode, String depcode);

    /**
     * 根据医院编号，查询医院所有小科室列表
     */
    List<DepartmentVo> findDeptTree(String hoscode);


    String getDepName(String hoscode, String depcode);

    Department getDepartment(String hoscode, String depcode);
}
